package com.heima.test01;

public class StudentClassScores {
    private String id;
    private String name;
    private double english;
    private double math;
    private double chinese;

    public StudentClassScores() {
    }

    public StudentClassScores(String id, String name, double english, double math, double chinese) {
        this.id = id;
        this.name = name;
        this.english = english;
        this.math = math;
        this.chinese = chinese;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(double english) {
        this.english = english;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getChinese() {
        return chinese;
    }

    public void setChinese(double chinese) {
        this.chinese = chinese;
    }
    public double getAverage(){
        double average = 0;
        average = (english+math+chinese)/3;
        return average;
    }
}
